package service;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class LoginService {
    private StudentDao studentDao;
    private ManagerDao managerDao;
    @Autowired
    public void setStudentDao(StudentDao studentDao){
        this.studentDao=studentDao;
    }
    @Autowired
    public void setManagerDao(ManagerDao ManagerDao){
        this.managerDao=managerDao;
    }

    public String getStudentPasswd(int id){
        return studentDao.getSpassword(id);
    }
    public String getManagerPasswd(int id){
        return managerDao.getApassword(id);
    }
}
